﻿<UserControl x:Class="Tum.CollabXT.TFS.WssUploadItemData"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:res="clr-namespace:Tum.CollabXT.TFS.Resources"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <GroupBox HorizontalAlignment="Stretch" Margin="5,5,5,5" Name="GroupBoxFrame" Height="80" >
        <StackPanel Orientation="Vertical">
            <Grid Name="NameGrid" Margin="0" Visibility="Collapsed">
                <Grid.RowDefinitions>
                    <RowDefinition Height="28"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="24" />
                    
                </Grid.ColumnDefinitions>
                
                <Label Grid.Row="0" Grid.Column="0" Name="LabelLibraryName" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_LibraryName}" />
                <TextBox Grid.Row="0" Grid.Column="1" Name="TextBoxLibraryNameValue" Margin="0,0,5,0" TextChanged="TextBoxLibraryNameValue_TextChanged" />
                <Button Name="ButtonRemoveLibrary" Grid.Row="0" Grid.Column="2" Click="ButtonRemoveLibrary_Click">
                    <Button.Template>
                        <ControlTemplate>
                            <Border HorizontalAlignment="Center" VerticalAlignment="Center" >
                                <Image Source="/Tum.CollabXT.TFS;component/Resources/remove.png" 
                               Width="24" 
                               Height="24"/>
                            </Border>
                        </ControlTemplate>
                    </Button.Template>
                </Button>
            </Grid>
            
            <Grid Name="PathGrid" Margin="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="28"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="70" />
                </Grid.ColumnDefinitions>

                <Label Grid.Row="0" Grid.Column="0" Name="LabelLibraryPath" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_LibraryPath}" />
                <Label Margin="0,0,5,0" Name="LabelLibraryValue" VerticalAlignment="Center" Grid.Row="0" Grid.Column="1" />
                <Button Grid.Row="0"  Grid.Column="2" Margin="0,3,0,3" VerticalAlignment="Center" Name="ButtonSetLibraryPath" Content="{x:Static res:Language.ConfigPage_Set}" Click="ButtonSetLibraryPath_Click" />
            </Grid>

            <Grid Name="DefaultPageGrid" Margin="0">
                <Grid.RowDefinitions>
                    <RowDefinition Height="28"/>
                </Grid.RowDefinitions>
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="130" />
                    <ColumnDefinition Width="*" />
                    <ColumnDefinition Width="70" />
                </Grid.ColumnDefinitions>

                <Label Grid.Row="0" Grid.Column="0" Name="LabelDefaultPage" FontWeight="Bold" Content="{x:Static res:Language.ConfigPage_LibraryDefaultPage}" />
                <Label Margin="0,0,5,0" Name="LabelDefaultPageValue" VerticalAlignment="Center" Grid.Row="0" Grid.Column="1"/>
                <Button Grid.Row="0"  Grid.Column="2" Margin="0,3,0,3" VerticalAlignment="Center" Name="ButtonSetDefaultPage" Content="{x:Static res:Language.ConfigPage_Set}" Click="ButtonSetDefaultPage_Click" />
            </Grid>
        </StackPanel>
    </GroupBox>
</UserControl>
